package Model;


import java.util.Collection;

/**
 *
 * @author pyty
 */
public interface BorrowManager {
    /**
     * Borrow medium by client
     *
     * @param client
     * @param medium
     */
    public void borrowMedium(Client client, Medium medium);

    /**
     * Return borrowed medium from client
     *
     * @param client
     * @param medium
     */
    public void returnBorrow(Medium medium);

    /**
     * Get the client who has the medium
     *
     * @param medium
     * @return The client who has the medium
     */
    public Client findClientWithMedium(Medium medium);

    /**
     * Get all mediums borrowed by the client
     *
     * @param client
     * @return all mediums borrowed by the client
     */
    public Collection<Medium> getMediumsBorrovedByClient(Client client);
}
